:root {
  --panel-bg: #101613;
  --panel-surface: #18201c;
  --panel-surface-hover: #202b25;
  --panel-line: rgba(222, 238, 229, 0.11);
  --panel-line-strong: rgba(222, 238, 229, 0.22);
  --panel-text: #f2f7f4;
  --panel-text-muted: #9caca3;
  --panel-accent: #58d991;
  --panel-accent-strong: #79e6a7;
  --panel-accent-ink: #082316;
  --focus-ring: #a7f3c5;
  --panel-radius: 14px;
  --control-radius: 10px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--panel-text);
  background: #0b100d;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--panel-accent-ink);
  background: var(--panel-accent-strong);
}

p {
  margin: 0;
}

button,
[role="button"] {
  font: inherit;
}

.v3d-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fullscreen-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-size: 100% 100%;
}

.fullscreen-open {
  background-image: url("media/fullscreen_open.svg");
}

.fullscreen-close {
  background-image: url("media/fullscreen_close.svg");
}

.English_Chinese {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--panel-line);
  border-radius: var(--control-radius);
  background-color: var(--panel-surface);
  background-image: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out,
    transform 160ms ease-out;
}

.English_Chinese::before {
  width: 24px;
  height: 24px;
  content: "";
  background: url(./icons/ench.svg) center / 24px 24px no-repeat;
  filter: brightness(0) invert(1);
}

.English_Chinese:hover {
  border-color: var(--panel-line-strong);
  background-color: var(--panel-surface-hover);
  transform: translateY(-1px);
}

.swiper {
  width: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
  text-align: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container1 {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

.left,
.right {
  height: 100dvh;
  min-height: 100vh;
}

.left {
  position: relative;
  flex: 1;
  min-width: 0;
  background-color: #7f7f7f;
}

.logoText {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: min(80%, 760px);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.product-intro {
  position: absolute;
  top: 50%;
  left: clamp(16px, 2vw, 30px);
  z-index: 4;
  width: clamp(260px, 20vw, 292px);
  max-height: calc(100dvh - 124px);
  padding: 17px 18px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--panel-text);
  background: rgba(16, 22, 19, 0.94);
  border: 1px solid var(--panel-line-strong);
  border-radius: var(--panel-radius);
  box-shadow: 0 18px 42px rgba(3, 12, 8, 0.22);
  transform: translateY(-50%);
  scrollbar-width: thin;
  scrollbar-color: #4a6254 transparent;
  contain: layout paint style;
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1),
    max-height 420ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 340ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 340ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 280ms ease-out;
}

.product-intro.is-animating {
  will-change: width, max-height;
}

.product-intro::-webkit-scrollbar {
  width: 8px;
}

.product-intro::-webkit-scrollbar-track {
  background: transparent;
}

.product-intro::-webkit-scrollbar-thumb {
  background: #4a6254;
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 8px;
}

.product-intro__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--panel-line);
  transition: gap 300ms cubic-bezier(0.16, 1, 0.3, 1),
    margin 300ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 300ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease-out;
}

.product-intro__header h2 {
  margin: 0;
  color: var(--panel-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 280ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 160ms ease-out, transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-intro__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.product-intro__status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--panel-accent-ink);
  background: var(--panel-accent-strong);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  max-width: 62px;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0);
  transition: max-width 260ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 150ms ease-out,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-intro__toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--panel-text);
  cursor: pointer;
  touch-action: manipulation;
  background: #202a25;
  border: 1px solid #34463d;
  border-radius: 9px;
  transition: color 140ms ease-out, background-color 140ms ease-out,
    border-color 140ms ease-out, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-intro__toggle:hover {
  color: var(--panel-accent-strong);
  background: #28362f;
  border-color: #567060;
}

.product-intro__toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.product-intro__toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-intro__body {
  display: grid;
  grid-template-rows: 1fr;
  min-height: 0;
  opacity: 1;
  transform: translateX(0);
  transition: grid-template-rows 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease-out, transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

.product-intro__specs {
  display: grid;
  gap: 12px;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.product-intro[data-collapsed="true"] {
  width: 48px;
  max-height: 48px;
  padding: 6px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(3, 12, 8, 0.18);
}

.product-intro[data-collapsed="true"] .product-intro__header {
  gap: 0;
  margin: 0;
  padding: 0;
  border-color: transparent;
}

.product-intro[data-collapsed="true"] .product-intro__header h2 {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
}

.product-intro[data-collapsed="true"] .product-intro__actions {
  gap: 0;
  margin-left: 0;
}

.product-intro[data-collapsed="true"] .product-intro__status {
  max-width: 0;
  padding-right: 0;
  padding-left: 0;
  opacity: 0;
  transform: translateX(-6px);
}

.product-intro[data-collapsed="true"] .product-intro__toggle {
  color: var(--panel-accent-strong);
  transform: rotate(180deg);
}

.product-intro[data-collapsed="true"] .product-intro__body {
  grid-template-rows: 0fr;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-12px);
  transition: grid-template-rows 280ms cubic-bezier(0.7, 0, 0.84, 0),
    opacity 130ms ease-in, transform 280ms cubic-bezier(0.7, 0, 0.84, 0),
    visibility 0s linear 280ms;
}

.product-intro__row {
  display: grid;
  gap: 4px;
  margin: 0;
}

.product-intro__body.is-revealing .product-intro__row {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(3px);
  animation:
    product-intro-type-row 420ms steps(14, end) forwards,
    product-intro-row-settle 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay:
    calc(360ms + var(--reveal-index, 0) * 56ms),
    calc(360ms + var(--reveal-index, 0) * 56ms);
}

@keyframes product-intro-type-row {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes product-intro-row-settle {
  from {
    opacity: 0.15;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-intro__row--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-intro__row--pair > div {
  min-width: 0;
}

.product-intro dt {
  margin: 0;
  color: var(--panel-text-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.product-intro dd {
  margin: 0;
  color: #edf5f0;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.55;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
}

.right {
  position: relative;
  flex: 0 0 clamp(390px, 30vw, 440px);
  width: clamp(390px, 30vw, 440px);
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  color: var(--panel-text);
  background: var(--panel-bg);
  border-left: 1px solid var(--panel-line);
}

.right::-webkit-scrollbar {
  width: 10px;
}

.right::-webkit-scrollbar-track {
  background: transparent;
}

.right::-webkit-scrollbar-thumb {
  background: #34443b;
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 10px;
}

.right::-webkit-scrollbar-thumb:hover {
  background: #4a6254;
  background-clip: padding-box;
}

.control-toolbar {
  width: 100%;
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
}

.control-toolbar > .row,
.control-toolbar > .row > .row {
  width: 100%;
  margin: 0;
}

.control-toolbar > .row > .row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.control-toolbar .col-2,
.control-toolbar .col {
  width: auto;
  padding: 0;
}

.control-toolbar .btn-success {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid var(--panel-line-strong);
  border-radius: var(--control-radius);
  color: var(--panel-text);
  background: var(--panel-surface);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 160ms ease-out, background-color 160ms ease-out,
    border-color 160ms ease-out, transform 160ms ease-out;
}

.control-toolbar .btn-success:hover {
  color: #ffffff;
  background: var(--panel-surface-hover);
  border-color: var(--panel-line-strong);
  transform: translateY(-1px);
}

.control-toolbar .btn-success::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--panel-accent);
  vertical-align: 1px;
}

.right .face {
  display: flex;
}

.btn-group,
.btn-group-vertical {
  width: 100%;
  margin: 4px 0;
  text-align: center;
}

img {
  border-radius: 8px;
}

.container {
  text-align: center;
}

.size-display {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.slider-container {
  display: flex;
  align-items: center;
}

#progressBar-length,
#progressBar-width {
  width: 100%;
}

.pannelBorder {
  position: relative;
  padding: 13px 14px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--panel-line);
  border-radius: var(--panel-radius);
  background: var(--panel-surface);
}

.pannelBorder > p {
  margin: 0 0 10px;
  color: var(--panel-text-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-align: left;
}

.pannelBorder > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  max-width: none;
  padding: 0;
}

.right .btn-outline-success {
  min-height: 36px;
  margin: 0 !important;
  padding: 7px 11px;
  border: 1px solid #34463d;
  border-radius: var(--control-radius);
  color: #d5e1da;
  background: #202a25;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 150ms ease-out, background-color 150ms ease-out,
    border-color 150ms ease-out, transform 150ms ease-out;
}

.right .btn-outline-success:hover {
  color: #ffffff;
  background: #28362f;
  border-color: #567060;
  transform: translateY(-1px);
}

.right .btn-outline-success.active,
.right .btn-outline-success:active,
.right .btn-outline-success.show {
  color: var(--panel-accent-ink);
  background: var(--panel-accent-strong);
  border-color: var(--panel-accent-strong);
}

.right .btn:focus-visible,
.right [role="button"]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: none;
}

.right .btn:disabled,
.right .btn.disabled {
  color: #77847d;
  background: #1a211d;
  border-color: #28332d;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.right button[id^="05_CL_color0"] {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 2px solid transparent !important;
  font-size: 12px;
  font-weight: 700;
}

.right button[id="05_CL_color01"],
.right button[id="05_CL_color03"],
.right button[id="05_CL_color04"] {
  color: #172019;
}

.right button[id="05_CL_color02"],
.right button[id="05_CL_color05"],
.right button[id="05_CL_color06"],
.right button[id="05_CL_color07"] {
  color: #ffffff;
}

.right button[id^="05_CL_color0"]:hover,
.right button[id^="05_CL_color0"]:focus-visible {
  border-color: #ffffff !important;
}

.v3d-annotation {
  color: #ffffff;
  background: rgba(9, 119, 236, 0.8);
  border: 1px solid #ffffff;
  font-size: 18px;
  line-height: 13px;
}

.v3d-annotation-dialog {
  top: 30px;
  left: -40px;
  min-width: 100px;
  color: #ffffff;
  background: rgba(9, 119, 236, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.8);
}

.scene-loader {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--panel-text);
  background: #eef2ef;
  opacity: 0;
  isolation: isolate;
  transition: opacity 220ms ease-out;
}

.left.is-scene-loading .product-intro {
  visibility: hidden;
}

.scene-loader.is-visible {
  opacity: 1;
}

.scene-loader.is-complete {
  pointer-events: none;
  opacity: 0;
  transition-duration: 280ms;
}

.scene-loader__panel {
  width: min(410px, calc(100vw - 48px));
  padding: 26px 28px 24px;
  background: #111915;
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(6, 17, 11, 0.2);
  transform: translateY(6px);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.scene-loader.is-visible .scene-loader__panel {
  transform: translateY(0);
}

.scene-loader.is-complete .scene-loader__panel {
  transform: translateY(-4px);
}

.scene-loader__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.scene-loader__heading h2 {
  max-width: 230px;
  margin: 0;
  color: #f1f7f3;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.scene-loader__percent {
  min-width: 70px;
  color: var(--panel-accent-strong);
  font-size: 30px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scene-loader__status {
  min-height: 22px;
  margin: 13px 0 20px;
  color: #aebdb4;
  font-size: 13px;
  line-height: 1.55;
}

.scene-loader__track {
  position: relative;
  height: 6px;
  overflow: hidden;
  background: #2a3931;
  border-radius: 4px;
}

.scene-loader__fill {
  position: absolute;
  inset: 0;
  background: var(--panel-accent-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease-out;
}

.scene-loader__meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 18px;
  margin-top: 10px;
  color: #829289;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.scene-loader__retry {
  min-height: 38px;
  margin-top: 20px;
  padding: 8px 14px;
  color: #0c2116;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  background: var(--panel-accent-strong);
  border: 0;
  border-radius: 9px;
}

.scene-loader__retry:hover {
  background: #8aefb6;
}

.scene-loader__retry:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.scene-loader.has-error .scene-loader__percent {
  color: #f0b6ae;
}

.scene-loader.has-error .scene-loader__fill {
  background: #d67d72;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .product-intro {
    left: 14px;
    width: 234px;
    padding: 14px 15px 15px;
  }

  .product-intro__header {
    margin-bottom: 13px;
  }

  .product-intro__specs {
    gap: 9px;
  }

  .product-intro dd {
    font-size: 11px;
    line-height: 1.45;
  }

  .right {
    flex-basis: clamp(380px, 38vw, 410px);
    width: clamp(380px, 38vw, 410px);
    padding: 16px;
  }

  .pannelBorder {
    padding: 12px;
  }
}

@media (max-width: 900px) {
  .container1 {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
    min-height: 0;
  }

  .left {
    flex: 0 0 58dvh;
    height: 58dvh;
    overflow: hidden;
  }

  .right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    flex: 0 0 42dvh;
    height: 42dvh;
    padding: 14px 16px 18px;
    border-top: 1px solid var(--panel-line);
    border-left: 0;
  }

  .control-toolbar,
  .right > .swiper {
    grid-column: 1 / -1;
  }

  .control-toolbar {
    margin-bottom: 0;
  }

  .pannelBorder {
    height: fit-content;
    margin: 0;
  }

  .logoText {
    top: 16px;
    font-size: clamp(16px, 3.4vw, 22px);
  }

  .product-intro {
    top: auto;
    bottom: 14px;
    left: 14px;
    width: min(284px, calc(100% - 28px));
    max-height: calc(58dvh - 76px);
    padding: 14px 15px 15px;
    transform: none;
  }

  .product-intro__header {
    margin-bottom: 12px;
    padding-bottom: 11px;
  }

  .product-intro__header h2 {
    font-size: 16px;
  }

  .product-intro__specs {
    gap: 9px;
  }

  .product-intro dd {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 600px) {
  .left {
    flex-basis: 55dvh;
    height: 55dvh;
  }

  .product-intro {
    bottom: 10px;
    left: 10px;
    width: min(250px, calc(100% - 20px));
    max-height: calc(55dvh - 68px);
    padding: 12px 13px 13px;
  }

  .right {
    grid-template-columns: 1fr;
    flex-basis: 45dvh;
    height: 45dvh;
    padding-inline: 12px;
  }

  .right .btn-outline-success {
    min-height: 40px;
    padding: 8px 12px;
  }

  .pannelBorder > .container {
    gap: 8px;
  }

  .scene-loader {
    padding: 18px;
  }

  .scene-loader__panel {
    width: min(100%, 360px);
    padding: 22px 20px 20px;
  }

  .scene-loader__heading {
    gap: 18px;
  }

  .scene-loader__heading h2 {
    font-size: 17px;
  }

  .scene-loader__percent {
    min-width: 62px;
    font-size: 27px;
  }
}

@media (pointer: coarse) {
  .product-intro__toggle {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .product-intro[data-collapsed="true"] {
    width: 56px;
    max-height: 56px;
    padding: 6px;
  }

  .English_Chinese,
  .control-toolbar .btn-success {
    min-height: 44px;
  }

  .English_Chinese {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .control-toolbar > .row > .row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .right .btn-outline-success {
    min-height: 44px;
    padding-block: 9px;
  }

  .right button[id^="05_CL_color0"] {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .product-intro__body,
  .product-intro__toggle,
  .product-intro__header h2,
  .product-intro__status {
    transform: none !important;
  }

  .product-intro__body.is-revealing .product-intro__row {
    opacity: 1;
    clip-path: none;
    transform: none;
    animation: none;
  }

  .scene-loader,
  .scene-loader__panel {
    transition-duration: 0.01ms !important;
    transform: none;
  }

  .scene-loader__fill {
    transition-duration: 0.01ms !important;
  }
}
